<?php
/*
 * @Author: your name
 * @Date: 2020-06-05 17:32:41
 * @LastEditTime: 2020-07-30 10:15:19
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /special/application/adminapiv3/controller/Index.php
 */ 
namespace app\adminapiv3\controller;

use app\common\model\FilePathModel;

class IndexController extends BaseController
{
    public function index ()
    {
    }

    /**
     * @name 判断是否安装
     * @author wx
     * @date 2019/12/10 15:10
     */
    public function isInstall()
    {
        $model = new FilePathModel();
        $installFileName = $model->install_path;
        $systemFileName = $model->system_time;

        if (!file_exists($installFileName) || !file_exists($systemFileName)) {
            $data['is_install'] = 0;//未安装
        }else{
            $data['is_install'] = 1;//已安装
        }

       return $this->jsonOutPut($data);
    }
    
}